#include "kernel/types.h"
#include "kernel/net.h"
#include "kernel/stat.h"
#include "user/user.h"

static void
arpping(uint16 sport, uint16 dport, int attempts)
{
  uint32 dst;
  uint8 dmac[ETHADDR_LEN] = {0xff,0xff,0xff,0xff,0xff,0xff};
  dst = (10 << 24) | (0 << 16) | (2 << 8) | (2 << 0);

  txarp(ARP_OP_REQUEST, dmac, dst);
  printf("arpping done\n");
}

int
main(int argc, char *argv[])
{
  uint16 dport = NET_TESTS_PORT;
  arpping(2000, dport, 1);
  exit(0);
}
